Javascript edits to satisfy jshint

- jshint is not correctly configure to run in the 
engine

- however, it can be run as a node app:
http://jshint.com/docs/