Unable to put new quote into a tweet

I’ve worked on this for several days and turned myself into knots. I’ve looked through all of the similar topics and nothing works for me. Perhaps I’m way off…

Here’s CodePen: http://codepen.io/jbvolpe/pen/LyVmLG

Here’s my HTML for the twitter button and JS:
This actually shows the blue button with Tweet inside of it.
Tweet

JAVASCRIPT:

function newQuote() {
var randomNum = Math.floor(Math.random() * quotes.length);

var container = document.getElementById(“quote”);
container.innerHTML = quotes[randomNum];

$(’#tweet’).click(function() {
$(this).attr(“data-text”, quotes[randomNum]);
});
}

It looks like what you need to do is just change the “href” attribute of the #tweet button rather than binding a new click event?