Improve checking for extracted string to cover case where jhint recognised a file as html but couldn't extract any javascript.