fixing js client