updated ws.js to use current express API