Define JSHint configuration on .jshintrc and validate the code

Update the closure to pass mediaWiki and jQuery as mw and $.