Initial attempt at javascript etl