I am facing an interesting scenario with a coworker who has suggested using JavaScript in a Web client application (specifically EPiServer CMS) to manage all the documents in the backend (SharePoint Online). However, I am unable to figure out how to access SharePoint Online from the JavaScript code on the client-side. Is this actually a viable approach? Are there better alternatives for handling documents in this setup?