Update bookmarklet.js

Instead of window.getSelection().type, use window.getSelection().isCollapsed (fixes Firefox bug when nothing is selected)