text: Title: Fix broken JavaScript reference in the docs
  Body: As @Laerte [pointed out](https://github.com/scrapy/scrapy/pull/5072#issuecomment-1483391283), https://github.com/scrapy/scrapy.org/issues/224 also applies to docs.scrapy.org, so changes are needed in this repository as well. 