record_editor: fix javascript on /record/edit

* Addresses issue with record editor not loading record data (closes #2143)

Signed-off-by: Petr Broz <petr.broz@gmail.com>