code: function templateMatches(template, obj) {
    for (var key in template) {
      if (template.hasOwnProperty(key) && obj[key] !== template[key]) {
        return false;
      }
    }
    return true;
  }
docs: return true if all corresponding object properties match