The timing seems to be when the line on the left is completely clear, but a ball is over the line on the right.
Also, you have to zoom to see the score.
For my submission, Itch let me set the dimensions of the HTML view, so I set them to be the same as what was under Project -> Project Settings -> Display -> Window -> Size in Godot 3.