Use linkHref variable in createLink function