update js to match the JSON error handling string