Client-side XDI Javascript library