Fixes jshint errors and removes unused timeout