I added pill feature

I just used rangy third party library for store and restoring caret position.