<script type = "text/javascript">
var msg = {{msg.payload}}
</script>
this method considers the value {{msg.payload}} as an error due to the '{' in the syntax, I tried different ways, but nothing works, I guess I'm missing something I don't understand, please I'm open to any suggestions.