moved all logic to typescript
unignore main.js