script.js: refactored: changed hide, unhide, abstracted Switch
script.js: refactored: changed Indicator to Animator