I'd much rather see this being something like `var baseUrl = $('#gcccrashes').data('base-url')` and in the template do `<div id="gccrashes" data-base-url="{{ static('crashstats.gccrashes_json_data')}} ">`