Oh, but I'm not a fan of running automatically on every page.  We currently have two admin use-cases for this; it seems quite inefficient  to add another request for student page views, for no current benefit.  

For the time being, can we put this logic into a separate function, and for the pages using it wrap the call to that function in $(function() {} ?