I've made a quick, small example of loading different levels in 1 single frame based on the current global value number. NO extensions are required.
It is a simple game of collecting the keys, and exit toward the door. There are only 4 example levels.
Debug keys are 1 - 4 to select a level.