anchor.diff:  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");
     
  -  // Fetch list of posts
  +  // Load the list of previously added posts
     getPosts().then((response) => addPostsToDOM(formResp, response)); 
     
  -  // Submit data
  +  // 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");
  
positive.code:   
    // Remove all posts
    formClearAll.onClick.listen((e) {
      e.preventDefault();
      formResp.children.clear();
      
      deletePosts().then((response) { 
        print(response);
        getPosts().then((response) => addPostsToDOM(formResp, response));
  
negative.code:   });
  }
  
  // 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(
  