Fix converting a document without a doctype to string

and add test
Continue when errors parsing inline JavaScript

Add test
Correct warning for deprecated text/m-objects
Merge pull request #29 from Stuk/html-js-parse

Continue when errors parsing inline JavaScript