Changing Main.ts to Main.js