fail test if any JS error occurs