modified onclick share javascript