Add js with cocoon gem to add nested version for a collector