D3 & HTML beginners work and test code