code: function (str) {
          var arr = str.split('.');
          var obj = root[arr.shift()];
  
          while (arr.length && obj) {
              obj = obj[arr.shift()];
          }
          return obj;
      }
docs: Finds globally dot noted namespaced objects from a string