Playing around with the D3 javascript library