Do you mind if I add these to my own library? https://github.com/Lerc/whio (MIT Licence)
It's a library I use when I teach kids JavaScript. It provides simple global functions to let them get started before they have to deal with ideas such as canvas context objects.
A Wiki page showing the functions they get to use is at http://fingswotidun.com/code/index.php/API
The functions you show here are exactly the sort of thing that would be useful for beginners.