Insert DOM elements into a container in order