Attempted alterations to the DOM form, but unsure of syntax and placement of code