Made changes to js files according to require.js