Update cs-wd.js

fixed Util waitForPopup, forgot to put the name in while putting this on github.