Change contains to indexOf for cross-browser support

In addition to the pull request at #2, this fixes errors in non-Firefox browsers for me! Solution found at http://stackoverflow.com/questions/17387915/jquery-contains-code-doesnt-work-on-chrome