Adding Alex's Node.js server code for clarity