Fall back to toStaticHTML if available

85de1e83b9ea22ec7e6cb379efc21d0d4ec83478 added a feature detect to not do anything if createHTMLDocument does not exist. IE8 is likely one of the most common browsers that doesn't have createHTMLDocument. This diff modifies code to use toStaticHTML which IE8 supports. Despite its limitations, this is better than doing nothing.
Merge pull request #38 from devd/master

Fall back to toStaticHTML if available