Update server.js

process variables have string type, need to remove type checking in if statements.