None of our popular programming languages know how to handle distribution well. Yet our programs interact more and more with each other and our data resorts in databases and web services. Batches are a new addition to languages that can finally bring native support for distribution to our favourite programming languages. This research proposes BatchJS as a JavaScript implementation of batches. Since server-side JavaScript has become a popular solution for data-heavy web applications, batches are a powerful addition to the language. To demonstrate this, an experiment is carried out which shows how BatchJS can handle access to an SQL database. The use of BatchJS gives a programming model as clean as object{relational mapping can get but it provides a much better performance.