fixes for safari and older chrome

added DOMparser html extension by Eli Grey