spinner and removed application files not necessary
truncating javascript string