changes to globalFunctions.js

comments added
slimmer code to toggle visibility of all elements for accessible version