Improved AMD pattern to make production.js running without require.js