(chore) Update main.js to open window when calling