run server as js