fix: indexOf is not avaible in ie8 thus breaks script

using $.inArray instead of indexOf
Merge pull request #6 from ubenzer/ie8arrayfix

fix: indexOf is not avaible in ie8 thus breaks script