I improved run_specs script so that it correctly capture js errors.