Update dom.js

remove formatting of Heading tags and PRE tag leave the text content with no tag. The code changes will wrap the text content with p tags. Please consider this pull request. Thanks.