Switched to DOM

Now it uses DOM element to find and change anchor elements