Javascript object/array to List