[coordinate.js] Formatted files according to coding style guidelines

Does not cover most parts of the parser file since it uses code pulled from external sources
that should be stripped off into a separate file.

Change-Id: Idac101c9888c617d790e3148fecf2a38c253d8b8