Fixed problem with use of indexOf() mdethod on arrays, which is not supported by IE8 and below.   See SF Bugs #280.