mostly fix quoting of json in data attributes