function setAccountPassword(pwd) {
    // If you don't reset the selection range then focus() grabs the
    // physical box.
    window.getSelection().removeAllRanges();
    $('#accountPassword').val(pwd).focus().select();
}

$(function() {
    $.mobile.defaultPageTransition = 'none';

    $('input').attr('autocapitalize', 'off').attr('autocorrect', 'off');
    $('input[type="password"]').attr('autocomplete', 'off');

    $('#newNickname').click(function() {
        $('#newNicknameContainer').css('display', 'none');
        $('#validateMasterPassword').css('display', 'inline').focus();
    });

    $('#createAccountPassword').click(function() {
        if ($('#newNickname')[0].checked) {
            if ($('#masterPassword').val() !==
                    $('#validateMasterPassword').val()) {
                $('#masterPassword').val('');
                $('#validateMasterPassword').val('');
                $('#masterPassword').focus();
                return;
            }
        }

        $.mobile.changePage('#accountPasswordPage',
                                 {changeHash: false});

        var accountPassword = oplop.accountPassword($('#nickname').val(),
                                    $('#masterPassword').val());
        $(':password, :text').val('');

        setAccountPassword(accountPassword);
        if (window.clipboardWrite !== undefined) {
            clipboardWrite(accountPassword);
        }
    });

    $('.startOver').click(function() {
        window.location = window.location;
    });
});

@@ -242,49 +242,224 @@
     
-$.mobile.defaultPageTransition = 'none';%0A
+/* For smooth transitions between screens, don't use any. */%0A    $.mobile.defaultPageTransition = 'none';%0A%0A    /* Turn off all automatic formatting stuff from iOS.%0A       Leave on auto-complete for nicknames only. */
 %0A   
@@ -586,24 +586,78 @@
 ', 'off');%0A%0A
+    /* When %22New Nickname%22 checkbox is clicked ... */%0A
     $('#newN
@@ -820,24 +820,80 @@
 );%0A    %7D);%0A%0A
+    /* When %22Create account password%22 is clicked ... */%0A
     $('#crea
@@ -1718,24 +1718,67 @@
  %7D%0A    %7D);%0A%0A
+    /* When %22Start Over%22 is clicked ... */%0A
     $('.star

Document why each thing is in startup.js