Javascript String contains(pattern)
String.prototype.contains = function(pattern) { return this.indexOf(pattern) !== -1; };