added jshint and overrode setTimeout