add performance.now() polyfill
use performance.now() polyfill to support Safari OSX