Lazily map over javascript generators