Dead links check JS bugfix