Update yld.js

Inheritance support