Fixed the jQuery dataType for POST & PUT methods