Add jshint dev dependency.
Add jshint config and lint script.
Use latest version of jshint.
Fix style changes.
Also run lint on travis-ci.