Converting to use require.js