text: $('#avatar-preview').click(function() {
      $('#avatar').click();
  })
  
  $('#avatar').change(function(event) {
      let preview = document.getElementById('avatar-preview');
      preview.src = URL.createObjectURL(event.target.files[0]);
      preview.onload = function() {
          URL.revokeObjectURL(preview.src) // free memory
      }
  });
  