I usually use them in team with a spear unit on attack, while the spears exchange blows with the enemy the javelins rains death from below, actually it's perfect fr those nasty kings that don't want to die peacefully...