docs: function parseJavaScriptVariable(body) {
    // Work with empty string if scraping fails.
    let res
    let jsonString = ''
    // Create a cheerio object from response body.
    const $ = cheerio.load(body)
  
    // Find the variable inside one of the <script> elements in the response body.
    $('script').each(function (i, elem) {
      if (/(VI\.quakeInfo = .+);/.test($(this).text())) {
        jsonString = $(elem).html().match(/(VI\.quakeInfo = )(.+);/)[2]
      }
    })
  
    // Convert the variable to JavaScript Object Notation and fix seperators in values.
    const resString = jsonString.replace(/(:\'[-0-9]\d*)(,)(\d*)/g, '$1.$3')
  
    // Create a Regular expression and change date representation.
    // eslint-disable-next-line max-len
    const regexDate = /(\'t\':)new Date\((([0-9.,-]+),([0-9.,-]+),([0-9.,-]+),([0-9.,-]+),([0-9.,-]+),([0-9.,-]+))\)(,\'a\')/g
    const dateReplace = (match, p1, p2, p3, p4, p5, p6, p7, p8, p9) => {
      const parsedDate = new Date(
        parseInt(p3, 10),
        parseInt(p4.split('-')[0], 10) - 1, parseInt(p5, 10),
        parseInt(p6, 10),
        parseInt(p7, 10),
        parseInt(p8, 10)
      )
      return `${p1}\\${parsedDate.toISOString()}\\${p9}`
    }
  
    try {
      // Create semi-final JSON string.
      res = JSON.parse(resString.replace(regexDate, dateReplace).replace(/\'/g, '"'))
    } catch (ex) {
      return JSON.parse([{ error: 'Error parsing source.' }])
    }
    // rename fields to match current specs
    const resFields = []
    res.forEach((element) => {
      const tmpRow = {}
      tmpRow.timestamp = element.t
      tmpRow.latitude = element.lat
      tmpRow.longitude = element.lon
      tmpRow.depth = element.dep
      tmpRow.size = element.s
      tmpRow.quality = element.q
      tmpRow.humanReadableLocation = `${element.dL} km ${element.dD} af ${element.dR}`
      resFields.push(tmpRow)
    })
  
    return resFields
  }