Create waitForKeyElements.js