remove global i variable
use exact equality
remove a global scoped variable
remove global scoped test variable
add exact equality test
only watch window resize when the popup is shown
use exact equality test
remove global variable eraBaseDirectory