Re-format js files

- Remove whitespace
- Reorder controller methods
- Add preceding underscore to all controller methods not called in applicationcontroller