populeted list and pictures in js