fix directory playing on linux

Because Popen doesn't use bash, globbing doesn't work (somehow this worked
on Windows anyway). Files have to be added to the command line one by one.

Also added some semicolons to javascript.