refactored out RecordReplayEngine.js, Constants.js, Globals.js, and Config.js from analysis.js