while(tableEnv.firstChild != tableEnv.lastChild)==>while(tableEnv.rows.length > 1)