Update front/js/main.js

success