Minor clean up and setting up JSHint

:tophat: