added the function to the script.js in the Functionals Wacky folder