transition reversing with setTimeout

I managed to reverse the transition even if the browser's back button
is pressed by simply using the setTimeout method. The class is changed
one millisecond after the pointer is pressed. It spares a huge amount
of HTML and JavaScript.