Edits to main.js.