tasks.js: get rid of var
tasks.js: remove bad code
restore missing migration: rejected_at_to_record