Refactor code according to jshint.
Finish linting the javascript files.
Merge branch 'jshint-the-server'