Best to include this functionality with the rest; find the `$(function()` declaration in the code and put it at the bottom.