jshint cleanups, fix jasmine timeout leakage