Linting Javascript File

Pair programming with @thinktt, and caught a few minor issues. Still more to look at. Touches #7