Factory Method commits

Modified README.md
Example of FactoryMethod in js