Use CORS for REST API
Merge and change server.js for a more verbose output