Resolve JS hint errors

Minor touch up so it passes validation
I'd suggest using a test runner, like [Karma](https://github.com/karma-runner/karma). It supports multiple browsers, PhantomJS included.