Responsive JavaScript with Require.js