Fixed main2 variable names for the demo to also work with Firefox