Added js patterns inheritance and singleton examples.