fix javascript when click share button