function resetElements(JSONcontainer) {
  prepareElements(JSONcontainer);
  cleanupElements(JSONcontainer);
  prepareElements(JSONcontainer);
}
Ensures that all elements are removed first up so they can be recreated cleanly
@param {object} JSONcontainer