@iperdomo I thought having var inside a for loop is bad practice in javascript?