Updating main.js

Adding lots of stuff