get trash working in js