Suppose I want to create a Train Class that needs some kind of a call back system…
Is that possible?

Sure. functions in js are objects too. Just accept an EcmaScriptObject as a parameter when hooking it up, then call the “Call” method on it when you want to invoke it.