Ace Editor MouseOver

HTML

<script src="http://umple.googlecode.com/svn-history/r1380/trunk/umpleonline/scripts/ace/ace-uncompressed.js"></script>
Mouse at <span id="log">?, ?</span>
<div id="editor" style="height: 500px; width: 500px">some text
sdf sdf
fdsfsd
fds sdf sf 
     d
    f
 df tr tr df
sdf sdf
sdf sadf
</div>

JavaScript

window.onload = function() {
    window.Editor = ace.edit("editor");
    window.Editor.on("mousemove", function(e){
        var pos = e.getDocumentPosition();
        $("#log").html("" + pos.row + ", " + pos.column);
    })
};