Use underscore for indexOf array

Added in IE9 ... what the
Added fix for IE8 to show correct categories