Finished code for connecting over BrowserStack tunnel