A couple recent posts on the PlayFab blog point a new web API (though I haven't tried using it with PA) and an SDK generator, with an official JS API in the works.