Convert JS hash to equivalent tabular data structure