Update waiter.js

correcting typos in code comments