Use requestAnimationFrame. Doesn't handle slower speeds yet.