function retrieveGetParameters(){
    let parameters = {}
    window.location.search
        .substring(1)                                       //Remove '?' at beginning
        .split('&')                                         //Split key-value pairs
        .map((currentElement) => {                          //Fill parameters object with key-value pairs
            const key = currentElement.split('=')[0];
            const value = currentElement.split('=')[1];
            parameters[key] = value;
        })
    return parameters;
}
@@ -536,8 +536,118 @@
 eters;%0A%7D
+%0A%0Afunction getTeamname()%7B%0A    const parameters = retrieveGetParameters();%0A    return parameters%5B%22teamname%22%5D;%0A%7D

Add function for retrieving team name from URL