Adapted treejs according to warehouse recent fix