Use Array.prototype.contains

Bug 1069063