fix cell execution in firefox, closes #3447

location.origin is specific to WebKit only. The fix is to use a
combination of location.protocol and location.host
Merge pull request #3453 from ivanov/fix-3447

fix websocket connection in old Firefox

location.origin is a too recent addition.

closes #3447
Merge branch 'master' into condor