Fixed issue with unbinding of beforeunload event