add jquery.caret.js for getting caret position in text