If you have a Google account, you can save this code to your Google Drive.
Google will ask you to confirm Google Drive access.
Save file as:
If you have saved a file to Google Drive, you can open it here:
The second and third click event will not be executed due to event.stopImmediatePropagation(). Try to erase this method and see what happens.