add ticket type fees and fix javascript error