Create markup from a javascript object literal