JS: Utility Function in a Closure
(function( $ ){ $.fn.example = function() { // some code }; })( jQuery );