automate munging of raw data into js objects