Derp. jQuery-dependent function now inside jQuery closure.