Set debug javascript flag in header inc and then set the variable in the main body templates
debug has flag to turn off all console.* methods firebug has override if console.* are missing