Javascript Number padZeros( lenght )
Number.prototype.padZeros = function ( lenght ) { return this.toString().padZeros(length); }