I\'m implementing as simple image gallery.
This is what I got for now
function init(){ var elem = document.createElement(\"img\"); elem.scr=\'upload
You have made typo
elem.scr='upload/creative-design-modern-furniture.jpg';
should be
elem.src='upload/creative-design-modern-furniture.jpg';