Quickly create a DOM object in JavaScript