Fix for #133 - inheritance support.
Merge pull request #296 from ankush-garg/errJsAttach

Fix for #133 - inheritance support.