Fixed CORS requests
Fixed JSON output