//= require iD
+/* globals iD */
+
document.addEventListener("DOMContentLoaded", function() {
var container = document.getElementById("id-container");
var id = iD.Context()
.embed(true)
.assetPath("iD/")
- .assetMap(container.dataset.assetMap)
+ .assetMap(JSON.parse(container.dataset.assetMap))
.locale(container.dataset.locale, container.dataset.localePath)
.preauth({
urlroot: location.protocol + "//" + location.host,