Gaia invalid link detection patch

Check all files that I changed with gjslint --nojsdoc and make lint APP=sms; no errors. Can't run make hint yet because still haven't figured out why it says it isn't compatible with my system.