This code navigates the DOM and renders the list of scripts that were included in this page's HEAD tag, which should be: prototype.js, wolips.js, effects.js, wonder.js (in that order).

This link should be rewritten to /wa/rewriteWorked instead of /wa/rewriteBroken.