javascriot html eqaul to jQuery
// Jquery
$('#frmPasswordResetAlert').html(msgHTML);
// Equivalent in Vanilla Js
document.getElementById('frmPasswordResetAlert').innerHTML = msgHTML;
Smiling Starling