I was trying to get the current page `pathname` using javascript. I was able to get it, but I'm getting it with the *Forward Slash* `/`. I'd want to remove that `/` from variable.

Here's the code which I tried. :)

```js
var URLPath = window.location.pathname;
alert(URLPath);
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
```