Here you can find the source of equalsIgnoreCase(otherStr)
String.prototype.equalsIgnoreCase = function (otherStr) { return this.toLowerCase() === otherStr.toLowerCase(); }