Changed variable names in main.js.