Update helperFunctions.js