Added license, fixed bug

Now using the BSD 2-Clause License!
(http://opensource.org/licenses/BSD-2-Clause)

Fixed the bug which would cause the bubble in the upper left to not
disappear properly. Adding parentheses to the window.getSelection()
call fixed this problem.