updating detect-javascript-errors.js script to support multiple urls