update server.ts
Step 1 was completed in addressing #5, see eb29a6bcd17ff5fa0ce0ef84a54dc5105da97837.