Use `compile` instead of `compileJS` to compile JS files.

This further simplifies the build script.