code: function (number, width) {
              number += '';
              width -= number.length;
              if (width > 0) {
                  return new Array(width + 1).join('0') + number;
              }
              return number + '';
          }
docs: Fills leading zeros for a number to make sure it has a fixed width.