Remove trailing spaces from main.js