Downgrade to version 2.4 of jshint and fix errors