cleaned up link.js; added anchors to internal links