using self.location and url page values in jquery
===

I currently have the following:

    $ul.append('<li>' + '<a href="setlocale.aspx?returnURL=default.aspx&localesetting=' + this.slice(0) + '">' + this.slice(3) + '</a>');

Lets say my URL ends with: `/c-577-camping.aspx`

How do I use this value in my jquery? it should change `default.aspx` to `c-577-camping.aspx` and if the website is `www.site.com/c-517-cookers.aspx` then it should append:

 `http://www.site.com/c-517-cookers.aspx?setlocale.aspx?returnURL=c-517-cookers.aspx&localesetting=fr-FR`

