add foldTag method to programmatically fold a tag in ace