Update JS to match coding standards

Mainly consists of adding in spaces inside `( )` and `[ ]`, removing spaces before `:`, unquoting simple object keys, etc.

Adds a `.jshintrc` to the `js` directory, matching the one added to WP core (other than extra globals).