checking for undefined
add onCaret class for styling purposes
Fixed editing existing tags clearing old ones when adding a new one
Merge pull request #3 from 1lobby/indexfix

Fixes for editing existing tagged textarea