generating table with correct dimensions using handlebars