Add jshint, and be compliant to jshint rules