edit record js