added JSON, JSONP, CORS, and a little more documentation