All you've done so far is construct the href (URL) string. A link in the page would be markup like this:
Then you need to put that markup into the page. Maybe something like this:
M.
var url = "<a href='" + link + "'>some text here</a>";
$("#myDiv").html(url);