record.js: Fix the named constants