Setup javascript / require.js architecture.