added try catch block to window.performance assignment 

prevent the following error:
firefox v21: TypeError:  setting a property that only has a getter