module Sprockets::Processing

def js_compressor

Return JS compressor or nil if none is set
def js_compressor
  bundle_processors('application/javascript').detect { |klass|
    klass.respond_to?(:name) &&
      klass.name == 'Sprockets::Processor (js_compressor)'
  }
end