Check for links to make after modifications to DOM

This fixes issue #3.