function updatePage() { if (req.readyState == 4) { if (req.status == 200) { var response = req.responseText; document.getElementById("result").innerHTML = response; stripe(); } else { alert("status is " + req.status); } } }