position drop-down menu relative to caret position and appended to body