Add base JavaScript files and set up Require.js