Stop loader if xhr request fails
localize url before escaping it