Update main.js

just a few adjustments, still not usable