Google Chrome compatibility

Closes #11
Merge pull request #12 from tophf/master

Chrome browser compatibility with Array.forEach