Cleanups to prevent jshint warnings

I made use of this module in my project and jsHint threw up a bunch of warnings. This commit resolves all those warnings. (My IDE also applied some formatting). There are no other functional changes.