Publish step by step with Require.js