fix chrome extension to get selected text correctly