Reporting: scrap create array js function