Extension variable name: userCustom

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

More info