Protect sensitive data in field

I've got an app and I need to allow entry of a value, but then I want to hide the content. I thought something like the iphone password method would be good. I found https://github.com/timmywil/password123

So I first load the script


// the first parameter is an array of files to load.

LazyLoad.js(['https://raw.githubusercontent.com/timmywil/password123/master/jquery.password123.min.js'], function () {});

//This is just to show I'm affecting the correct object.

//$(document).on('knack-page-render.scene_71', function(event, page) {

// $('#view_98 #field_78').attr('disabled', 'disabled');

//});

//Try to make the field a password type?

// Then try to hook up the password function?

$(document).on('knack-page-render.scene_71', function(event, page) {

$('#view_98 #field_78').attr('type', 'password');

$('#view_98 #field_78').password123();

});

Doesn't work. I'm guessing I can't change the input from text to password that way? That's if it's even needed for the password feature. If not, then how do I make the password thing hook up?