fix js in event form