require(['libs/text!header.html','libs/text!home.html','libs/text!footer.html'], function ( headerTpl, homeTpl, footerTpl) {
  Parse.initialize("ypbtLkCGDPQquYoqR4l3Vtyurd1PdJWyHddk3lI4", "qIovwT5luZTxlSozfPI4Jb4e8oQVXwz341hDzUtw");
  var ApplicationRouter = Backbone.Router.extend({
    routes: {
      "": "home",
      "*actions": "home"
    },
    initialize: function() {
      this.headerView = new HeaderView();
      this.headerView.render();
      this.footerView = new FooterView();
      this.footerView.render();
    },
    home: function() {
      this.homeView = new HomeView();
      this.homeView.render();
    }
  });
      
  HeaderView = Backbone.View.extend({
    el: "#header",
    templateFileName: "header.html",
    template: headerTpl,
    initialize: function() {
    },
    render: function() {
      console.log(this.template)
      $(this.el).html(_.template(this.template))
      ;
    }
  });
      
  FooterView = Backbone.View.extend({
    el: "#footer",
    templateFileName: "footer.html",
    template: footerTpl,
    initialize: function() {
    },
    render: function() {
      console.log(this.template);
      $(this.el).html(_.template(this.template));
    }
  });
  Message = Parse.Object.extend({
    className: "MessageBoard"
  });
  MessageBoard = Parse.Collection.extend({
    model: Message
  });
  HomeView = Backbone.View.extend({
    el: "#content",
    templateFileName: "home.html",
    template: homeTpl,
    events: {
      "click #send": "saveMessage"
    },
    initialize: function() {
      this.collection = new MessageBoard();
      this.collection.bind("all", this.render, this);
      this.collection.fetch();
      this.collection.on("add", function(message) {
        message.save(null, {
          success: function(message) {
            console.log('saved: '+message);
          },
          error: function(message) {
            console.log('error');
          }
        });
        console.log('saved'+message);
      })
    },
    saveMessage: function() {
      var newMessageForm=$("#new-message");
      var username = newMessageForm.find('[name="username"]').val();
      var message = newMessageForm.find('[name=message]').val();
      this.collection.add({
        "username": username,
        "message": message
      });
    },
    render: function() {
      console.log(this.collection)
      $(this.el).html(_.template(
        this.template,
        this.collection
      ));
    }
  });
  app = new ApplicationRouter();
  Backbone.history.start();
});
@@ -1,8 +1,66 @@
+var URL = %22http://boiling-anchorage-3138.herokuapp.com/%22;%0A
 require(
@@ -180,116 +180,8 @@
 ) %7B%0A
-  Parse.initialize(%22ypbtLkCGDPQquYoqR4l3Vtyurd1PdJWyHddk3lI4%22, %22qIovwT5luZTxlSozfPI4Jb4e8oQVXwz341hDzUtw%22);%0A
   va
@@ -1166,58 +1166,68 @@
 e = 
-Parse.Object.extend(%7B%0A    className: %22MessageBoard
+Backbone.Model.extend(%7B%0A    url: URL + %22messages/create.json
 %22%0A  
@@ -1251,12 +1251,15 @@
 d = 
-Pars
+Backbon
 e.Co
@@ -1294,16 +1294,53 @@
  Message
+,%0A    url: URL + %22messages/list.json%22
 %0A  %7D);%0A 
@@ -2182,23 +2182,25 @@
 ('%5Bname=
+%22
 message
+%22
 %5D').val(

Change Parse.com -> MongoDB