Clean-up internals after removing events
Bug fixes for append and appendTo