Removed reduntant object definition

moved all of the logic  to WSWrapper
Added WSNativeWrapper logic
update
testing onbeforeunload synchronization process