Updated JS test page to not use Array.prototype.indexOf

IE 8 does not define indexOf for arrays.