Added global functions file

Added globalFunctions.js file to house all global client-side functions
used throughout the system