Listens for DOM elements matching a selector and runs a function against each element once available.