THYMELEAD PASS Variable a JavaScript

<script th:inline="javascript">
    var username = [[${session.user.name}]];
</script>
Wild Wren