init js client