Base my understanding, The WinJS did not support this function to get the user message from Active directory .
I think you can use C# to achive to, and then you can add c#project in winjs project,You can call c# function to meet your need.
Hope this helps!