Adding inheritanceDemo.js and some code level formatting done in README.md file...

...d file.