Added js to call the local storage and make links work