When I put the form javascript code in the head it prevent my website from showing navigation