A Ruby/JS coding experiment