Pending server emulation with nodejs