Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer
Fair enough. I'll change how I'm using it for clarity.