Sure, I can share, but I had to retract some private stuff. Consider that I’m not good at programming at all though, this is made with very basic JS knowledge.
I attached the original script, but if you have more than 100 Notes, it will not work because of the memory limitations Apple puts on widgets. I fixed this by periodically running a whole script and writing the task list to a text file being read by the widget.
https://www.toptal.com/developers/hastebin/ekipirukuh.js