Update main.js

Fucking generation and shit