Update server.js

updated command listener with proper arguements