Caymland.cmsOnLoad = function (container, response) {
    //Initialize default selected pool
    if (mQuery("#cms_properties_pool_list").length) {
        let pool = mQuery("#cms_properties_pool_list");
        Caymland.poolChange(pool[0]);
    }
}

Caymland.poolChange = function (e) {
    let value = e.value;
    let tokens = JSON.parse(mQuery(e).attr('tokens'))[value];

    let html = '';
    for (const [key, value] of Object.entries(tokens)) {
        html += `<p>{${key}} - ${value.type}</p>`;
    }
    let tokensContainer = mQuery('#cms_pool_tokens_description');
    tokensContainer.html(html);
}