Ie < 8 issue fix (changed indexOf() to $.inArray())

Updated indexOf method of array to jquery method inArray()