javascript syntax examples
refactored so that from json to to ruby to csv