small cleanup in main.js