fixed Array.prototype.indexOf polyfill
use lib.indexOf instead of Array.prototype.indexOf
Merge pull request #231 from pvolok/master

Array.prototype.indexOf polyfill is incorrect