code: function(dec) {
        var hex;
        hex = dec.toString(16);
        if (hex.length < 2) {
          hex = "0" + hex;
        }
        return hex;
      }
docs: Turn a decimal into a hexadecimal.
  @param {Number} dec The decimal.
  @return {String} The hexadecimal.