introduce DOM.raf helper