Javascript String padRight(length, char)
String.prototype.padRight = function (length, char) { if (char === void 0) { char = null; } return this + Array(length - String(this).length + 1).join(char || '0'); };