getting url by javascript