Replace DDSC component code with Javascript code

I am working on an ASP.NET Web Application that uses DDSC components with Javascript in an ASPX Page.
We need to remove/ retire DDSC components code

Following are the DDSC lines of Code that Need to be replaced with javascript code.

DDSC.WebPart(WPQ).Properties.GetValue("applicationCode", "someGUID");
DDSC.Properties.PutValueSession('applicationCode', 'someID', 0);

DDSC.Events.Raise("applicationCode", "onWindowOpenRequest", WPQ, Data, true);

DDSC.WebPart(WPQ).Close();

Any help or advice to replace the above DDSC codes with Javascript code.

Thanks in advance for helping.