Update server.js

changed to api v2