Update main.js

corrected a few more variables