An easy fix for this is to add an id to the clone div, and then set its left/right position with css instead of with javascript.
clone = $("<div id='caret-clone'><p></p></div>").appendTo("body");
#caret-clone {
left: -7000px; // left will be automatically converted to right in the rtl stylesheet
}