anchor.diff:    });
   }
   
  +// Add a post to the dom
   void addPostsToDOM(DivElement posts, String response) {
     if(response != "") {
       List responseList = JSON.decode(response);
       posts.children.clear();
       responseList.forEach((Map post) {
         
  +      // Create a new dom element for each post
         DivElement postDiv = new DivElement()
           ..classes = ["content-offset", "well"]
           ..children.addAll(
  
positive.code:   return c.future;
  }
  
  Future deletePosts() {
    var c = new Completer();
    HttpRequest.request("/posts/delete", method: "DELETE").then((response) {
      c.complete(response.responseText); 
    }).catchError((e) {
  
negative.code: import 'dart:convert';
  
  void main() {
    // Form input
    InputElement formName     = querySelector("#form-input-name");
    TextAreaElement formMess  = querySelector("#form-input-message");
    
    // Form actions
    ButtonElement formSubmit    = querySelector("#form-submit");
    ButtonElement formClearAll  = querySelector("#form-clear-all");
    
    // Response
    DivElement respWrap = querySelector("#response-wrapper");
    DivElement formResp = querySelector("#response");
    
    // Load the list of previously added posts
    getPosts().then((response) => addPostsToDOM(formResp, response)); 
    
    // Handle form submit
    formSubmit.onClick.listen((e) {
      // Prevent default form actions
      e.preventDefault();
      
      // Send request to the server
      HttpRequest.request("/posts/add", method: "POST", 
        requestHeaders: {"Content-Type": "application/json"},
        sendData: JSON.encode({"name": formName.value, "message": formMess.value}))
      .then((response) {
        print(response);
        
        // Reload list of posts
        getPosts().then((response) => addPostsToDOM(formResp, response));
      }).catchError((e) {
        print("Unable to add post");
  