Turn String Into Int Javascript Array Map Function