code: function removeFromStack(element){
      element.up.down = element.down;
      element.down.up = element.up;
      element.up = element.down = null;
  }
docs: This will remove a stackelement from its stack while leaving the stack functional.
  @param {Object} element The elment to remove from the stack.