added the if statement to the script.js in the Functionals Wacky folder