Ticket 489 + rewrite of record_list_functions.js stuff