Anchor tags replaced with javascript