Let javascript generate the input fields