Use Javascript to hide form elements rather than display: none