Impliment ExternalInterface calls for preventing windowunload when changes need saving