Получите последнюю часть url jQuery

// use this
var part = [];
var url = window.location.href;
    part = (url.toString()).split('/') // this will give an array then choose your part by calling this array!! 
// Hope this will help you!!!
Homely Hamerkop