Add cross browser animationFrame