update from jquery-textcomplete
$apply not needed anymore because of trigger, sets caret at the end of the text (only needed for contenteditable element)
Merge pull request #6 from lpsBetty/master

update from jquery-textcomplete and solve contenteditable caret problem