I'd suggest s/callbackIdKey/'_callback'/g, which is more straight-forward code, no need to declare `callbackIdKey = '_callback';` globally.