fixing small bug with require.js domReady