# Broken JS JavaScript files which return a broken page status code such as 404 or 501 **Priority**: Critical **Impact**: Negative ## What issues it may cause Broken JavaScript files may result in errors in the website causing a poor user experience, and may affect the indexing of the page if the rendered content is not visible to Googlebot. ## How do you fix it Update the JavaScript link to a working JavaScript URL or remove the link. ## What is the positive impact Users will have an improved user-experience which can help to build brand recognition and increased click-through rates from search engine results pages. ## How to fetch the data for this report template You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query: ```graphql query GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { url foundAtUrl level httpStatusCode disallowedPage failedReason js fileExtension foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } totalCount pageInfo { endCursor hasNextPage } } } } ``` **Variables:** ```json {"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"broken_js"} ```