Ported the project to use require.js.