Learning JavaScript/D3 along with HTML5 Canvas