Use promises to connect after device/browser ready