started working on js client