Update web-server.js

Fixed issue #1.