This doesn't really need to be a global function, so let's wrap it in a jQuery ready event (which means you also don't need to listen for `DOMContentLoaded` and longer).