Building a calendar from scratch with D3