Has anyone tried applying Systematic Program Design to JavaScript?

I was thinking about restarting How To Code: Systematic Program Design course (finished it in the beginning of the year but managed to forget most of it in a few months) and applying the concepts learned to JavaScript, which was why I started it in the first place.

The first obstacle I encountered is that I have no idea what would be the equivalent of image primitives in JavaScript. Also, later problem would be what would be equivalent of World Program or whatever it was named.