Add handshake for making the code work in other non cordova iframes