Added datatype parameter to ajax request for update.