I'm getting an error on line 58: `formatDate is not defined`

other than that, everything looks great. I'll merge your pull request once this is fixed (assuming no other minor hiccups). Great job.