Adding content type arg to api and ajax