Anchor tag wasn't working; replaced with javascript