fix(jquey): allow getTokenByPopup to work with jQuery