script.js edited and check for <a> tags also