logResult: proper html and screenshot log