Update server.js

streamlined command watcher