code: function parseForm(form) {
      var result = {};
      if (typeof form === 'undefined' || form===null)
          return result;
      var keys = Object.keys(form);
      keys.forEach(function(key) {
          if (form.hasOwnProperty(key))
          {
              extend(result, key, form[key]);
          }
      });
      return result;
  }
docs: Parses a form object and returns form parameters as object e.g. user[name]=user&user1[password]=1234 returns user: { name: 'user1', password:'1234'}
  @param form
  @private