change server.js deal with protol