In chrome extension, I have an array of anchor tags(from DOM) which are the links of the downloadable files and I click on them in the loop using .click() but only the last one