var loginWindow = window.open(login_url, '_blank', 'location=yes');
$(loginWindow).on("loadstart", function (e) {
var url = e.originalEvent.url;
var access_token = url.split("access_token=")[1];
createChart(access_token);
loginWindow.close();
});
"loadstart"
есть?