Extension variable name: userCustom

Example:
userCustom.onPreviewFinished = function() {
  eventMgr.onMessage("Finished!");
};

More info

Careful! This is subject to malicious code. Don't copy/paste untrusted content.