simple method to output debug values to the browser or the browser console