Ranged attacks devastate chariots. Set your infantry to 'fire at will' and the javelins will deal with them.