legacy: fix javascript on /record/edit
Co-authored-by: Jiri Kuncar <jiri.kuncar@cern.ch> Signed-off-by: Petr Broz <petr.broz@gmail.com>