Two choices:
> use camelCase everywhere, but keep using snake_case only for
server-generated attributes
> always manually convert to camelCase after you get the data
back from the network, and use camelCase everywhere.
If you have to pick a global convention on both sides,
JavaScript should win - ie, camelCase.