Fixes a simple mistake on mode util.
Fixes caret position logic.

Now EditorLineView has <div> per line, which makes easier to calculate
top/bottom pixels. Also, getOffset returns the value based on the
offsetLeft of the element instead of accumulating the width.