Reusable modules for building a JavaScript application using require.js