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