Jquery remove trailing slash from url