Let's put this in our admin.js (or a separate .js) file.