Fixed: Declare jQuery variable in footer function.