Update server.js

When methodName is "attributes", get the next element.