[REFACTOR] Use `def` for `Exhibit3_Initialized` and `Exhibit3_Loaded`

instead of using JavaScript global variables. This also saves up on some
redundant initialization code.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>