Fix JS style in main.js