Bundle command rewritten in js

Now it can be run under Windows with the "bundle.cmd" executable.