Might want to make the error messages for JS errors and for Ajax errors a bit more consistent with each other