Fixed tyopos in formation of data for ajax call