javascript still left to fill existing patient fields