Remade original Server API in NodeJS