functions.js and voucher. php