Update server.js

fix data format issue