Integrated rangy.js lib.
Implemented events for selection creation and destruction within a given element.