Update main.js

Changed some ids and variable names