Maybe it's just me, but the requestAnimationFrame code fails in Firefox unless they're all prefixed with 'window.'
It probably works straight away in Chrome because requestAnimationFrame is defined.
It probably works straight away in Chrome because requestAnimationFrame is defined.
Please let me know if this is still not working in your browser.