jQuery setInterval implementation using requestAnimFrame