Javascript String padLeft(pad)
String.prototype.padLeft = function(pad) { return pad.substring(0, pad.length - this.length) + this; }