Provided a workaround for the JSDom issue that strips out the DOCTYPE.