RequestAnimationFrame added

Instead of using the setTimeout to update the player I now use the
RequestAnimationFrame function that should run at a constant 60Hz and
provide a more reliable timing source.