setup js for styling form elements