DICOMweb-JS is an open source JS client for consuming DICOM Web Services - part 13 with a ASP.NET MVC demo that uses the Cornerstone viewer and cornerstoneWADOImageLoader
The code provide a basic library for sending DICOM Web requests and parsing JSON and multipart reposnses in (DIOCM, XML, Buld data...) .
The demo uses the library to connect to a DICOM Web server and initiate qido-rs for querying (studies, series and object instances), wado-RS for retrieving (study, series, object instance) and stow-rs for storing DICOM format images.
Check the demo page here
You can check the web server API here
This is an ASP.NET demo so you will need Visual Studio to build the code, you can download the VS2015 community edition or VS code. The JavaScript libraries are also built using Visual Studio and TypeScript.
Or you can use the dist folder to include the compiled JS files in your project.