We were looking to build a stack that natively supports Fast Healthcare Interoperability Resources (FHIR), which is the emerging interoperability protocol that Electronic Health Records (EHRS) are required to support under the MACRA and 21st Century Cures Laws. FHIR defines common data objects in XML/JSON format, so we naturally gravitated towards Javascript's native support of JSON. We didn't want vendor lock-in from Microsoft, Oracle, or Apple; and really appreciated that Javascript is installed in pretty much every web browser and on every phone.
Put another way, the emerging healthcare interoperability protocols require support of web technologies instead of desktop (.Net/Java) or bioinformatic pipelining technologies (Python). So we chose Javascript accordingly, and have been very pleased with that choice.