Fix timing for WebKit

Safari does not pass performance.now() to its unprefixed raf function nor does it implement performance.now().
This patch, written by dstockwell, works around this problem and makes everything wonderful again.