If this JS module only contains this one function, then perhaps it should just return that function, rather than an object containing the function. require.js has no problem with modules that return functions rather than objects.