Map test on NodeJS