add mocha timeout and make jshint happy