Fix for requestAnimationFrame for Firefox / IE10 since the APIs differ for each
cleaned up code + Brian's merge