more work on oidchat javascript