   console.log('load websocket')
   conn = null
 
+  # setup drop menu
   do add_li_in_drop_list = () ->
       jQuery('<li/>').appendTo('#connections>ul')
       jQuery('<a/>', {href: "#", text: "None"}).appendTo('#connections>ul>:last-child')

      console.log(conn)
      conn.onopen = () ->
          update_ui()

      conn.onmessage = (e) ->
          log(e.data); # Received

      return false

  choice_conn = (_conn) ->
      if _conn == undefined
          _conn = 'None'
      jQuery('#connections>a').text(_conn)
      msg = JSON.stringify({'conn':_conn})
      conn.send(msg)
