Here is a a little better way then @andy's answer, where the obj
(context) is optional, it falls back to window
if not provided..
function getDescendantProp(desc, obj) {
obj = obj || window;
var arr = desc.split(".");
while (arr.length && (obj = obj[arr.shift()]));
return obj;
};