code: function setPath(obj, value, path) {
                  var keys     = path.split('.');
                  var ret      = obj;
                  var lastKey  = keys[keys.length -1];
                  var target   = ret;
  
                  var parentPathKeys = keys.slice(0, keys.length -1);
                  parentPathKeys.forEach(function(key) {
                      if (!target.hasOwnProperty(key)) {
                          target[key] = {};
                      }
                      target = target[key];
                  });
  
                  target[lastKey] = value;
                  return ret;
              }
docs: Sets the value at any depth in a nested object based on the path note: adapted from: underscore-contrib#setPath