loop error in dojo.table