using jsdom instead of cheerio for dom operation, using filename for object name if object name parameter is empty