In C# to create an new instance by name and arguments, we can use reflection as follows:
var instance = Activator.CreateInstance("Com.Account.Person",
new object[] { "Jack", 195, 'USA' });
How to do this in Javascript?
var clazzName = document.getElementById('clazzName'); // from an input in the page
var args = document.getElementById('args').split(','); // from another input in the page
var instance = ....... // how?