A consice way of representing and creating html in javascript