I'd declare this above the `( function( $ ) {` so that it is globally visible.