Add javascript binding of register button to show the form.