Fixed setup for recommendations API

Also switched arguments loop to use lodash.forEach since it is faster
and safer
This should use the previously defined API key - the environment variable can be overridden with init()