deleted all commented (redundant) code in globalFunctions js file