Fix typo in js and add margin to caret in less