code: def extract_js_links(bs4):
      
  
      links = extract_links(bs4)
  
      real_js = [anchor for anchor in links if anchor.endswith(('.js', '.JS'))]
  
      js_tags = [anchor['src'] for anchor in bs4.select('script[type="text/javascript"]')
                 if anchor.has_attr('src')]
  
      return list(set(real_js+js_tags))
docs: Extracting js links from BeautifulSoup object
  
      :param bs4: `BeautifulSoup`
      :return: `list` List of links