Update server.js

Added documentation.