# Ruby code that is running in the browser
            require "js"
            document = JS.global[:document]
            button = document.getElementById "convert_text"
            input_text  = document.getElementById "input"
            result = document.getElementById "output"
            button.addEventListener "click" do |e|
              luckiness = input_text[:value].to_s
              result[:innerText] = luckiness.split("\n").to_s
            end