Wrap `core.js` in an anonymous function, part of #188

This is necessary for my fix for #189
If we're not viewing the page, don't show the review links; #189