Move the definition of the toggleElementVisibilty function out of blinker.start so it can be reused, not created each time blinker.start is called