Create whenReady.js