updates to js client