fix for extra characters in html5 console