Update index.js

Adding parent(), applyParent(), callParent()