Files you want to compress and add to the resulting file should be separated with spaces. The last filename is a build target.
Run next command in terminal:
$ ./compressjs.sh jquery-ui-1.8.16.custom.min.js chat-widget.js target.min.js
Of course you can use wildcards in file names and patterns:
$ ./compressjs.sh scripts/*.js target.min.js