queryParam = (function(){ var query = {}, pair, search = location.search.substring(1).split("&"), i = search.length; while (i--) { pair = search[i].split("="); query[pair[0]] = decodeURIComponent(pair[1]); } return query; })(); function getClientContent(baseApiUrl, clientId) { var content = '