add arguments support

Just a small hack to support an array of arguments for one js script.