use domReady plugin of require.js instead of window.onload