jshint ignore late function definition