Expose debug in main.js so it shows up in builds