Changed the registration of js functions

Hi,

I noticed you are using `=>` instead of `->` in the `client/index.coffee` file.
The problem is that this pollutes the window namespace.

I replaced all `=>` with `->` to avoid that.
Everything works fine with this change.