added work around for chrome version of requestAnimationFrame's callback being called with different value other than timestamp