Create anchor_redirect.js

The JavaScript file that does all the changing of anchor elements.