Extension variable name: userCustom Example: userCustom.onPreviewFinished = function() { eventMgr.onMessage("Finished!"); }; More info