small adjustment to requestFrame for browsers that require it to be called against the window object