adding vendor prefixes for requestAnimationFrame
fix indentation and remove unnecessary this keywords