Add polyfill for performance.now

Adds polyfill for performance.now to support safari.

@jessmartin I don't have safari here. Can you test it out and review?