Update public/js/main.js