edits to main.js