selection.js provides a clean API to access selection on browser.