code: function formatNumber(num, separator) {
          separator = separator || '.';
  
          return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, separator);
      }
docs: Formats an integer number with dots/commas as thousands separators
  
  @param  {Integer} num Number to format
  @param  {String} [separator='.'] Separator
  @return {String}