fixed bug in JS input element generation