add some new_record javascript functions