basic javascript: record collection github