noted that it requires es5
further updating of the README
minor refactoring to keep function definition in line with the prevailing style; with gracious permission from @yorickvP
changing scripts to include running the tests
corrected typo