Enable jshint and fix errors thrown about code quality.