Script

jQuery(function($){
    var passInput = $('#password');
    var passCheck = $('<input type="checkbox" />');
    passInput.after(passCheck);
    
    passCheck.click(function(){
        if(this.checked){
            passInput.attr('type','text');
        }else{
            passInput.attr('type','password');
        }
    });
});

Demo