A JavaScript client for PSI services