add raf polyfill to support safari 6.0