function getPlaceholderIndex() {
        return Array.prototype.indexOf.call(listNode.children, placeholderNode);
      }
We use the position of the placeholder node to determine at which position of the array the
object needs to be inserted