Added support for older versions of IE

My testing with IE8 was throwing a js error because it doesn't support indexOf() on arrays. jQuery.inArray() fixed the issue.