Didn't have time before to check it - tried it now. Nope, that line doesn't change anything, seems to be ignored.
I had to add context.scale(1,-1); in resize method to fix it.
(The animation also has some elements shifted for some reason to wrong positions. But maybe that is caused by something else, scaling of the canvas or something.)