Changed the window.load function for document.ready so the a element is appended on re-visiting page as well as loaded