updated main.js to match repo