$(document).ready(function() {

 var firebase = new Firebase("https://saysong.firebaseio.com");
      $('#messageInput').keypress(function (e) {
        if (e.keyCode == 13) {
          var name = $('#nameInput').val();
          var text = $('#messageInput').val();
          firebase.push({name: name, text: text});
          $('#messageInput').val('');
        }
      });
      firebase.on('child_added', function(snapshot) {
        var message = snapshot.val();
displayChatMessage(message.name, message.text);
      });
      function displayChatMessage(name, text) {
        $('<div class="message row"/>')
          .prepend('<em class="col-lg-8">'+text+'</em>')
          .prepend($('<em class="col-lg-3"/>')
          .text(name+': '))
          .append('<i class="fa fa-music col-lg-1"></i>')
          .appendTo($('#messagesDiv'));
        $('#messagesDiv')[0].scrollTop = $('#messagesDiv')[0].scrollHeight;
      };
      setInterval(function() {firebase.remove()}, 300000)
});
@@ -649,9 +649,9 @@
 -lg-
-8
+7
 %22%3E'+
@@ -704,17 +704,33 @@
 %22col-lg-
-3
+2 col-lg-offset-1
 %22/%3E')%0A  

Edit grid view