fixed bug in debug main.js regarding tooltips