added doctype, changed data-type to application/json
added charset and a variable for the api-adress