Standardize js error reporting
* from ajax requests. Also show xhr statusText during error