jshint fixes for mock