public String loadGames(String profileId, String parameters) throws Exception {
        String url = "http://steamcommunity.com/";
        if (containsOnlyDigits(profileId))
            url += "profiles/";
        else
            url += "id/";
        url += profileId + "/" + parameters;
        WebPage page = WebPage.loadWebPage(url, ENCODING);
        String pageContent = page.getContent();
        int lineIdx = pageContent.indexOf("var rgGames");
        if (lineIdx <= -1) {
            reaction.add("Invalid profile!");
            return null;
        }
        int startIdx = pageContent.indexOf("[", lineIdx)+1;
        int endIdx = pageContent.indexOf("];", startIdx);
        String gamesString = pageContent.substring(startIdx, endIdx);
        // chop first and last char
        gamesString = gamesString.substring(1, gamesString.length()-1);
        return gamesString;
    }