Replaced IE8 polyfill and usage of Array.indexOf with jQuery's $.inArray utility funciton (which provides the same functionality with a cross-browser compatibility mindset).