Replacing static url with dynamic url
Removed console.log() call