Get the final redirected url using Javascript json and jsonp