Updated JSDOM to ~1.4.0

New version with better compatibility.