prepare for apprentice code in HTML5/D3 client