Good point. Perhaps it should actually depend on an ajax variable, so it tries to parse as JSON only when relevant. (see the if http200 setting a few lines above it).