Removed unused yahoo yui library, just copied the function needed to extend classes from YAHOO.lang (YAHOO.lang.extend)