Anchorize.js

Anchorize is a small Javascript module which adds clickable anchors left of headings (or other elements with text contents). Elements without an id will get their first 20 characters slugified as an id. The result is similar to the link icons next to the titles on this file, viewed in Github gists.
Demo