The object tag can be used to embed any type of content into a html page. From flash through SVG and including html documents. It is similar to an iframe tag but the standard does not require it to have as much overhead. Hence it may be a better choice for an HTML5 based slide show.
The quick solution is to use a script
document.write('<'+'object data="something" width="200" height="200"></'+'object>');