fix optinal classes concatenation
cleanup doctypes
switched from xmldom to jsdom/jsdom-little