clean up insertComplete a bit, remove param from getCaretPos