JavaScript for runtime dynamic display of conditional elements from DITA and other sources