changed Josie.getAnimationFrame to requestAnimFrame