made js pass through errors from the server