Rewriting service with nodejs