Fixed responsive table generation bug.

The generation produced axis attributes successfully, however
all tables' axis values were being generated with the first table's
header values. This was caused because the array containing the values
as well as the array counters had a higher scope than necessary.

Signed-off-by: Byron Sanchez <bfs5030@gmail.com>