add attr_delegate to class.js
add prototype extend