javascript for uploading anddeleting participant photo