Add jshint support & fix jshint errors

Slightly modified version of the .jshintrc file from
mediawiki/core.git

Change-Id: I18a1aa803e556be33813c32f711c467aeead0a38