adding fields with javascript: nailed it