A fair bit of linting

- Single quotes not double quotes
- bundling variable declarations (generally)
- braces around logic
Merge pull request #47 from roc/lint

Lint the main js file