encapsulated functionality;  cleaning-up glowal ('window') namespace.