Use jQuery, PHP, and an archive.org API to check the HTTP status of a link and redirect to Wayback if it's 404.