Issue #3120794: Fix I wait for AJAX to finish for Machine name JavaScript generation of the name of the entity type