Updated to handle Safar versions that don't support window.performance.
Merge pull request #2 from stefhak/master

Updated to handle Safar versions that don't support window.performance.