Fixed ajax loader and trailing white space. CLoes #880