change indexOf call on Array to if statement so we're compatible with IE 8
Merge pull request #289 from svoboda-jan/fix_js_for_ie_8

Change indexOf call on Array to if statement so we're compatible with IE 8