Started work on doc.cutSelection()