Updated to use window.requestAnimationFrame
Version 0.0.2