Add jshint

Added default JSHint configuration, and JSHInted existing code.