Get links before AJAX response added to DOM