Add example in Ruby + fix durability in JS