use javascript to add files to tickets