fix whitespace issues in compiler, JS and output paths

Currently, if the path to the compiler or any of the JS files contains white space, the task will fail with an error (`Cannot read: Files`) under Windows. I've fixed it by quoting the path arguments, and I've tested it under Linux as well.