Made adding and removing field functions publicly accessible for other Javascript to use