Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer
can use node's native forEach, don't need lodash for this