Create waitanddo.js