table tree js fix