ticket verifications
$.each instead of for in
general clean up