This simple example is just a starting point and is intended to show how to use the adal.js methods to authenticate with Office 365 and obtain a token that can be used in REST calls to the Office 365 API.
The sample uses a simple HTML page and about 50 lines of JavaScript and only depends on adal.js and jQuery, avoiding dependency on a particular SPA framework.
The intention is to provide sample code for those building apps using frameworks other than Anglular, or no framework, or building apps for Cordova or WinJS.