new bms api call: enables calling a javascript method by name