Separated Main.js into component files

- Also removed all old TypeScript stuff