this javascript should be moved into a js file, and the `<a>` tag changed to a `<span>`