Maybe you want a method somewhere to return you an element.
function _getElementFor(id) {
  return downloadsContainer.querySelector('[data-id=' + id +']'; // I think you don't need the double quotes
}