How to add message as flag?

<script> var myFlag = AJS.flag({ type: 'success', body: '<strong>TEST-745</strong> Message.' + '<ul class="aui-nav-actions-list">' + '<li><a class="aui-button aui-button-link" href="#">Link one</a></li>' + '<li><button class="aui-button aui-button-link">Link two</button></li>' + '</ul>' }); </script>