JS.setCustomStatus(string html)
Sets the HTML text to be displayed on the custom status pane (turn the command pane on on the Interface script of the game object). This is an involved issue, rather than give an example, go see this page.