Catching errors in update function

IE9 in IE7 mode was throwing a javascript error in the restore() function. This happened when an element on the page was being replaced by a new element. The try/catch in restore() was not working properly. I added a try/catch in update() around the call to restore. Please evaluate this fix. Hope this helps.