good debugging of main.js