Resolving JavaScript issues with require.js.