Remove possibly the remaining onclick attributes
Prevent variable leak

The diff does not understand indentation increases.
Remove unneeded strict statements

Move three global variables into one global object
Use `part` parameter in `changePartImages()` instead of value in global
object