notify: use timers module for window.setTimeout

(integrated from master branch change a14039d by Todd Whiteman <toddw@activestate.com>)