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