functional javascript part 1 - data wrangling