How to get the url of document location using jquery for example if my javascript file is located here http://domain.com/folder/file.js now when file.js is executed it should return the url like http://domain.com/folder how to do it using jquery.