Create waitUntilExists.js