Create waitForElement.js