added expanding arrays in JSON for html tables into javascript function
Merge branch 'SPARK-2017' into SPARK-2016