function on_index_html(html) {
    // Look for patterns like:  href="couchbase-server-community_x86_64_2.0.0c-709-rel.rpm"
    var hrefs = html.match(/href="[^\"]+"/g);
    for (var i = 0; i < hrefs.length; i++) {
        href = hrefs[i];
        url = href.split('"')[1])
        console.debug(url);
    }
}

$(document).ready(function(){
        $.get("../../index.html", null,
              function(response, textStatus, jqXHR){
                  on_index_html(response);
              });
    });

@@ -264,17 +264,49 @@
 ('%22')%5B1%5D
-)
+;%0A        parts = url.split('.');
 %0A       
@@ -323,16 +323,23 @@
 ebug(url
+, parts
 );%0A    %7D

debug url parts