There is no open JavaScript library as far as I know for crossbrowser clientside handling of a WMP player.However, this link should make it quite easy for you to start your own little library. The code might need some updating and testing in modern browser versions but you have the basics there.