Sample implementation for require.js