The configObject should be outside robin (robinInit should be responsible of getting the configObject in JSON), and received it from the function: function Robin(options)...

options is JSON.