Adopt module pattern via require.js