center modal on the selected text

There's this quirky bug on: https://news.ycombinator.com/item?id=7295094
After selecting some text and clicking on the extension the modal opens up and the page jumps down half of its length. This fixes the issue by centering the modal on the selected text.