update algorithm to latest revision; use scrollIntoView for bookmarklet