build JS object WIP