Issue #1574490 by frega, nod_: Clean-up: batch.js.
Merge branch 'hellomrcat-pr/291' into 1.x