Added js for getting selected text and for insert links in html page