Update js.rb

for chained backends