Fix error when using requestAnimationFrame due to type coercion
Add a range input for clockspeed on example page.