Issue #76 code refactoring
1: use a closure in the loop associated to a variable function to generate rows
2: generate a simpler looking html table