 
     # add the progress gif
     if newMessage and newMessage.length <= 160
-      $(".simulator-body").append "<div class=\"imsg to post-message\">" + simulatorEscapeHTML(newMessage) + "</div>"
+      $(".simulator-body").append "<div class=\"imsg to post-message\"></div>"
+      $(".simultor-body .imsg.to.post-message:last").text(newMessage).html()
       $("#simulator textarea").val ""
       $(".simulator-loading").css "display", "block"
       # $(".simulator-body").css "height", $(".simulator-body").height() - 25

window.simulation = false
moving_sim = false

simulatorEscapeHTML = (string) ->
  string.replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;')

window.updateSimulator = (data) ->



  # add the progress gif
  if newMessage and newMessage.length <= 160
    $(".simulator-body").append "<div class=\"imsg to post-message\"></div>"
    $(".simulator-body .imsg.to.post-message:last").text(newMessage).html()
    $("#simulator textarea").val ""
    $(".simulator-loading").css "display", "block"
    # $(".simulator-body").css "height", $(".simulator-body").height() - 25
