improve server.js
improve sample