added contentType to ajax post request