Moved the debug switches into src/js/debug_switch.js