require.js-ified the app