require.js pacing and scripts loading fix