updating to use require.js and text.js