Made js_unit_test fail properly if jsdom not available.