fix jshint errors

Fixes errors output by jshint
* Add missing semicolons
* Use singlequotes instead of double quotes for strings
* Replace `GHOSTIUM` with `window.GHOSTIUM`