Fix JSON content-type

You're currently returning text/javascript as the content-type for JSON requests. This patch fixes that to be application/json.