update path
updated path
added jshint and overrode setTimeout