Removed dependency of array.indexOf function.
Merge pull request #1 from brentj/master

Removed array.indexOf dependancy