Put primitive values into js collections