[OE-5174] Clean up diagnosis js and add stubs for integration with widget
Merge branch 'jira/OE-5174' of github.com:openeyes/OphCiExamination into jira/OE-5174