fix URL formatting

All 'a' tags in the document were being selected, modified, then moved by the appender. Fixed it so that a new tag is created and appended, as expected.