Click function not working with dynamically created selector on Safari

I’m working on a page where I load list elements with the youtube api. In my code I’ve got an empty ul which gets filled dynamically on load: