second stab
removed namespaced events
extracted caret from jquery prototype, renamed to caretHelper to avoid name conflict
renamed caretHelper to caret after name conflict resolution
converted to coffeescript
coffeescripted
added window