Update record.js