Update main.js

Maybe I don't even need an onload function if I just throw this stuff after the initial variable call