Adding "add" button
wrapping code in IIFE
wrapping fields in a form and binding to onsubmit to simplify event handling