$(function() {
    var usernameEl = $('#username');
    var passwordEl = $('#password');

    // in a real application, hardcoding the user/password would be idiotic
    // but for the demo application it's very convenient to do so
    if (!usernameEl.val() || 'jane_admin' === usernameEl.val()) {
        usernameEl.val('jane_admin');
        passwordEl.val('kitten');
    }
});

$(function() {
    var usernameEl = $('#username');
    var passwordEl = $('#password');

    // in a real application, the user/password should never be hardcoded
    // but for the demo application it's very convenient to do so
    if (!usernameEl.val() || 'jane_admin' === usernameEl.val()) {
        usernameEl.val('jane_admin');
        passwordEl.val('kitten');
    }
});

Use a more friendly message about hardcoding user details
Use a more friendly message about hardcoding user details