turn JavaScript errors into *js.Error panic