How to get current Request URL or Route in javascript