Update ticketfunctions.js