make lots of errors hidden under a jQuery fold