Fix overly strict JSDom errors