indexOf replace with jQuery inArray to avoid issues with older versions of IE
Merging PR #4
Merge pull request #5 from Belelros/pr/4

Merging