js template with jQuery/D3.