It's good to use `data-*` attributes for this kind of thing. I would highly recommend avoiding generic names like `data-request-url` in favor of something more explicit. You are generating two different heat maps: 1. Stops 2. Driving This feels like two explicitly named attributes would be better: <!-- language: lang-html --> <div id="map" data-heatmap-stops-url="@Url.Action(...)" data-heatmap-driving-url="@Url.Action(...)"> </div> Now looking at your HTML source code will give you a better idea about what these custom attributes mean.