<script type="text/javascript"> var obj = JSON.parse(document.getElementById('appdata').dataset.obj); </script>