Incorperating AMD pattern via require.js