Added jshint and fixed all lint errors