Javascript String hasHttpPrefix()
hasHttpPrefix()
String.prototype.hasHttpPrefix = function() { return !!this.match(/^https*:\/\//i); }