generate cleaner javascript array data