Replaces the jQuery standard timer loop with requestAnimationFrame when available