Switching app.js over to requirejs syntax