Remove dead code and run jshint on ci