the app and the webview page wouldn't connect if there was unfortunate timing, added a promise to make sure that connection happened, and a ready event back tot he app