First draft of the bookmarklet script.