Set the 'arg' variable when running Javascript scripts

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>