Do all these functions need to be in the global JS namespace?