Factor our js from repl.html.
Align button and text input.