Why not inject the url as a `data-*` attribute? Might be more flexible that way too..