Update recordManager.js