get last path segment of url in javascript
By Kellie Block at Jul 10 2021
javascript get last url segment
By George Berge at Dec 13 2020