@eddiemonge i'm no javascript guru in any way so feel free to correct or invalidate this PR, i am using this modification on a personal basis as i have the need to specify the appName (using multiple browsers) though admittedly missed the callback part. i just picked up the variables from the open function and didn't actually looked at documentation. will you make a cooler one?