first draft of curator.js server