For now, yeah, that makes sense.

In the future, it might be worth creating a javascript equivalent of helpers.py where we can store these types of functions. We can use myjobs.js for now, but if we get too many unrelated functions, it could get hairy managing such a giant file.