this originally was "../", which evaluated to true

Of course, "../" doesn't make much sense for the $debug parameter
in the first place. But the $debug parameter was $path back in the
early days of 2013 and when it changed to $debug, someone forgot
the reference here.
switch to the new API
fixed file reference (accidentally changed when I introduced the minification of css files)
make sure debug chart views work as expected