debug option

fix for browsers without a console