changes to launcher.js for windows compat