Small nit: You can use `window.setTimeout`, and remove it as global function in the jslint comment.