Using JavaScript to make Apache Ant less painful