Javascript String toValidId()
String.prototype.toValidId = function() { var content = this; return content.replace(/\s/g, '-'); };
String.prototype.toValidId = function () { // eslint-disable-line no-extend-native var content = this; return content.replace(/\s/g, '-'); };