battledata.js should not depend on caja
Preserve URI protocol when redirecting