const files = {'cat': ['lick-vet-penis.png', 'lsd-dragon.jpg', 'nailed-moonwalk.gif', 'not-exist.jpg', 'oh.gif', 'ooer.jpg', 'pan.jpg'], 'communist': ['black-hole.png', 'harry.jpg', 'nike.jpg', 'propaganda.jpg', 'sky.jpg'], 'dog': ['centipede.png', 'couple.jpg', 'deliver.jpg', 'fight.gif', 'hit-karate-dad.jpg', 'pic.jpg']} function cb(id) { let content = '

My name is Nguyễn Gia Phong

'; if (id != 'about') content = files[id].map(file => ` `).join(''); return () => document.getElementById('foobar').innerHTML = content; }