js client fix