Improved JS

Tidies up the JS source code against [this](https://codeclimate.com/github/cachethq/Cachet/app/assets/js/start.js).