Fixes IE7/8 where the indexOf polyfill was causing the browser to crash
Merge pull request #1 from chrisbarber86/fix_for_ie8

Fixes IE7/8 where the indexOf polyfill was causing the browser to crash