added require.js and integrated it