js application cell and column loops seperated