advice.js
function(obj, name) {
            while (!obj[name] && obj.prototype)
                obj = obj.prototype;
            return obj[name];
        }
function(obj, name) {
            while (!obj[name] && obj.prototype)
                obj = obj.prototype;
            return obj[name];
        }
#### findVal
find a value in a prototype chain
@param obj {function} Object to look in
@param name {object} name of the property to look for
@returns {*}