Added conditional IE html tags. Added indexOf to IE8 and below.