Update script.js

I ACTUALLY WROTE A LINK FIXER NOT EVEN REGEX HAHAHHHA REGEX SUX