fix issue #14

by adding an indexOf shim to Array for <=IE8
Merge pull request #18 from lloiser/master

fix issue #14