How to append the url to anchor tag inside a div which i got as a json response?
<p>I made a ajax to an api and i get the json response</p>

<pre><code>$.ajax({
            url: 'http://api.yipit.com/v1/deals/key=TMBYhkzfCntMb&amp;limit=20&amp;division=boston',
            dataType: 'jsonp',
            success: function (data) {
                console.log(data);
                var a = data.response.deals[0].business.url;
                // Below I get the url of the page with .htm extension
                console.log("link is "+a);
                var mydiv = document.getElementById("empid");
                var aTag = document.createElement('a'); 
                aTag.setAttribute('href', "what i'm supposed to put here ");
                aTag.innerHTML = "link text";
                empid.appendChild(aTag);
            }
        });
</code></pre>

<p>I have got the value in <code>a</code> variable which is a link now and I want to use that url in my anchor tag.</p>
