fixing multiple requestanimationframes
Merge branch 'master' into gh-pages