Added jshint and fixed its errors