[Js] Added util method to execute a function by it's string name