Adds hidden dom element containing front-loaded json.