Handle jsdom parse errors
Merge pull request #4 from btmills/master

Handle jsdom parse errors