commenting out this garbage cleanup bit as document.contains isn't supported in IE9... will figure something else out.
storing the cloned template node on the array node on assembleJSON, and referencing that when the array has to be drawn. preserves a copy of the template if all items are deleted.