Update to helperFunction.js