battledata.js should not depend on caja