Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer
I don't like to treat the arguments object like an array since it isn't one. Lodash doesn't care about this difference behind the scenes (I think it uses a for loop to implement), but I've found JS developers can trip on this.