Adding a getUrl function and attaching it to the scope to get the URL from the CDN