Added content-type header
Supporting JSONP
Changed JSONP settings from function to setting