Browser compatability works with setTimeout(f, 0) hack.