minor linechart JS cleanup and tooltip injection revert