Update server.js

class change