HTML5/D3: Minor bug fixes