JS: Request Animation Frame Shim