fix contentType = null bug in $.ajax