Version of Batches for Javascript with Rhino