fix for firefox

Animations are not working Firefox 20.0 because its requestAnimationFrame callback passes the epoch time as an argument while the code expects performance.now(), and the code to wrap the callback to use performance.now() didn't catch this case.