Prevent problems of clicking on caret elements
Use only one caret
Refactor caret.js