Added JSDoc comments to server.js