print debug output to dom