JSONP and CORS support for Rails >= 2.3