Fix caret positioning for Firefox

On Firefox 26.0, the caret position doesn't take into account the padding on a textarea element. This code fixes that oversight.