Demos: Multipage popup example: Cleaning up the code.