[OE-3658] fixed js for diagnoses element