fixed undefined $ in dispose() method for non-jquery instances