The one problem with this is that Glitch projects are forced to shutdown every 24hrs. To get good results you would need to use your custom pinger and UptimeRobot, this way the project is ensured to be online 24/7 (with the rare exception of a 5 minute downtime).
For example, here’s a list of my Uptime Robot sites,
The sites where I have draw a green dot next to are the ones kept online by Uptime Robot and my own pinging tool Awake! My ping tool uses the same approach like your code (different though).
Keep up the great work and keep on contibuting!
xXProGamerXx - a random user on the glitch forum
PS: This topic should probably go in #the-gallery as it would probably gather more attraction there.