convert to nodejs server