Create adminMiscFunctions.js

miscellaneous functions for admin