moving to require.js framework