improve js documentation