Fix "Missing space after 'function'" jshint errors