Update README.md
Update README.md
refactored code and added commenting
Merge branch 'master' of https://github.com/wkallhof/js-summarize into gh-pages