setTimeout helper library for the browser