refactor a bit and switch to using the ES5 array.forEach() system
change the text here to reflect the current state
cleaned up after a jslint run - now passes with no flaws
some more changes to reflect the current state of the code