add try&catch to jsdom