add rAF to globals