Experiment with embedding JS in Ruby to reuse browser client