As title, I tried to use this plugin before document.ready and got TypeError: $(...).getSelection is not a function