remove duplicate declaration
Added test for "Malformed HTML causing a non-critical JSDOM errors"