Adding debug to main.js.