Update main.js

updated variable names to not mess with functions