Use goog.array.contains instead of goog.array.indexOf