added cleanObject function

 Added a cleanObject function to recursively sanitize objects before passing to ExternalInterface.call()