Removed specific gloabals and unused reporting, and fixed jshint warnings.

Now `npm test` is passing locally. Sorry about that.