add jshint and fix timing events