Removed usages of Array.forEach, Array.map & Array.indexOf to make the module ES3 compliant.
Merge pull request #7 from colingourlay/master

Removed usages of Array.forEach, Array.map & Array.indexOf